﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" Inherits="System.Web.Mvc.ViewPage<Sinbiota.Web.Models.OccurrenceFormModel>" %>
<%@ Import Namespace="Localization" %>
<%@ Import Namespace="SinBiota.Model.Entities" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	<%: Strings.CreateNew %> <%: Strings.Occurrence %>
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

   <div id="OccurrenceForm">
    <h2><%: Strings.CreateNew %> <%: Strings.Occurrence %></h2>
     
        <% Html.EnableClientValidation(); %> 
        <div class="wizard_container">
        
    <% using (Html.BeginForm("Create","Occurrence", FormMethod.Post, new {Class="nice"})) {%>
            
            <%= Html.ValidationSummary(true,Messages.PleaseCorrectTheErrorsBelow) %> 
            <%: Html.EditorForModel() %>
            <input id="OccurrenceSubmit" type="submit" value="<%: Strings.Create %>" class="finish" />

    <% } %>
    </div>
    </div>
    <% Html.RenderPartial("AjaxCreateOccurrenceAuthor", new OccurrenceAuthor(), new ViewDataDictionary { { "ParentEntity", "Occurrence" } }); %>
  
    <div class="small button radius">
        <%: Html.ActionLink(Strings.BackToList, "Index") %>
    </div>



</asp:Content>
